import request from "@/utils/request";

// 查询定制功能帘列表
export function listOtherCurtain(query) {
  return request({
    url: "/md/otherCurtain/list",
    method: "get",
    params: query,
  });
}

// 查询定制功能帘详细
export function getOtherCurtain(otherCurtainId) {
  return request({
    url: "/md/otherCurtain/" + otherCurtainId,
    method: "get",
  });
}

// 新增定制功能帘
export function addOtherCurtain(data) {
  return request({
    url: "/md/otherCurtain",
    method: "post",
    data: data,
  });
}

// 修改定制功能帘
export function updateOtherCurtain(data) {
  return request({
    url: "/md/otherCurtain",
    method: "put",
    data: data,
  });
}

// 删除定制功能帘
export function delOtherCurtain(otherCurtainId) {
  return request({
    url: "/md/otherCurtain/" + otherCurtainId,
    method: "delete",
  });
}
